<template>
  <div>
  <Suspense>
    <!-- 加载好了 -->
    <template #default><AsyncComponent/></template>
    <!-- 还没加载好异步组件的时候 -->
    <template #fallback><h1>Loading</h1></template>
  </Suspense>
  </div>
</template>

<script lang="ts">


 import AsyncComponent from '@/components/AsyncComponent.vue'
export default {
  components:{
    AsyncComponent
  },
  setup(){
    return {}
   
  }
}
</script>
